interface TypesDefine {
  (str: string): void;
  name: string;
  say(): void;
}

let func = <TypesDefine>function(string: string): void {
  console.log(string);
}

func.say = function() {
  console.log('Hello World');
}

func.name = 'Define Types';